VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "FineMethodCaller"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Private mName As String
Private mForward As Object
Private mElapsedTime As Double
Private mError As Integer

Public Sub init(name As String, forward As Object)
mName = name
Set mForward = forward
End Sub

Public Sub forward(notify As Object)
Dim auto As New AutoNotifier
auto.StartFineMethod notify, Me
mForward.forward
End Sub

Public Sub reportTime(elTime As Double)
mElapsedTime = elTime
End Sub
Public Sub noError()
'No implementation for now
End Sub
Public Sub handleError()
mError = Err.Number
'TODO
'log the rest of the members of Err
End Sub


Public Property Get name() As String
name = mName
End Property
Public Property Get elapsedTime() As Double
elapsedTime = mElapsedTime
End Property

Public Property Get errorNumber() As Integer
errorNumber = mError
End Property

